package com.lukebang.pojo;

import java.util.List;

import com.lukebang.constant.CurtainGoodSpecialType;
import com.lukebang.constant.CurtainStructureType;
import com.lukebang.constant.CurtainStyleType;
import com.lukebang.constant.CurtainType;
/**
 * 
 * GoodSpecial 上午11:13:50
 * 
 * Copyright zhaocj Inc. All rights reserved.
 * Love ME Like Justin Bieber.
 */
public class GoodSpecial {
	private Integer specialId;// 特殊id
	private String window;// 窗户打开方式
	private String accessoriesType;// 配件类型
	private String remark;// 备注
	private Integer accId;// 配件商品ID
	private Double wide;// 宽
	private Double high;// 高
	private Integer production;// 窗帘制作方法
	private Integer type;// 特殊类型 0布 1纱 2帘头 3成品帘
	private Integer goodsId;// 商品ID
	private Integer goodsIdChild;// 商品ID
	private String installSite;// 安装位置
	private String pinstallSite;// 成品帘的安装方式（框内安装，框外安装）
	private String decorativeHead;
	private String installWay;
	private String goodForRoom;
	private Good good;
	private String installAaccessries;
	private String acc;
	private List<Picture> pictures;
	private String panzhuangfangshi;
	private String goodSpecialTypeStr;
	private Double saleNumber;
	private Integer whatStructure;
	private String parsOfPars;

	public String getParsOfPars() {
		return parsOfPars;
	}

	public void setParsOfPars(String parsOfPars) {
		this.parsOfPars = parsOfPars;
	}

	public Integer getWhatStructure() {
		return whatStructure;
	}

	public void setWhatStructure(Integer whatStructure) {
		this.whatStructure = whatStructure;
	}

	public Double getSaleNumber() {
		return saleNumber;
	}

	public void setSaleNumber(Double saleNumber) {
		this.saleNumber = saleNumber;
	}

	public String getGoodSpecialTypeStr() {
		return goodSpecialTypeStr;
	}

	public void setGoodSpecialTypeStr(String goodSpecialTypeStr) {
		this.goodSpecialTypeStr = goodSpecialTypeStr;
	}

	public String getPanzhuangfangshi() {
		return panzhuangfangshi;
	}

	public void setPanzhuangfangshi(String panzhuangfangshi) {
		this.panzhuangfangshi = panzhuangfangshi;
	}

	public String getAcc() {
		return acc;
	}

	public void setAcc(String acc) {
		this.acc = acc;
	}

	public List<Picture> getPictures() {
		return pictures;
	}

	public void setPictures(List<Picture> pictures) {
		this.pictures = pictures;
	}

	public Good getGood() {
		return good;
	}

	public void setGood(Good good) {
		this.good = good;
	}

	public String getGoodForRoom() {
		return goodForRoom;
	}

	public void setGoodForRoom(String goodForRoom) {
		this.goodForRoom = goodForRoom;
	}

	public String getInstallWay() {
		return installWay;
	}

	public void setInstallWay(String installWay) {
		this.installWay = installWay;
	}

	public String getInstallAaccessries() {
		return installAaccessries;
	}

	public void setInstallAaccessries(String installAaccessries) {
		this.installAaccessries = installAaccessries;
	}

	public String getDecorativeHead() {
		return decorativeHead;
	}

	public void setDecorativeHead(String decorativeHead) {
		this.decorativeHead = decorativeHead;
	}

	public Integer getGoodsIdChild() {
		return goodsIdChild;
	}

	public void setGoodsIdChild(Integer goodsIdChild) {
		this.goodsIdChild = goodsIdChild;
	}

	public String getPinstallSite() {
		return pinstallSite;
	}

	public void setPinstallSite(String pinstallSite) {
		this.pinstallSite = pinstallSite;
	}

	public String getInstallSite() {
		return installSite;
	}

	public void setInstallSite(String installSite) {
		this.installSite = installSite;
	}

	public String getWindow() {
		return window;
	}

	public void setWindow(String window) {
		this.window = window;
	}

	public String getAccessoriesType() {
		return accessoriesType;
	}

	public void setAccessoriesType(String accessoriesType) {
		this.accessoriesType = accessoriesType;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getAccId() {
		return accId;
	}

	public void setAccId(Integer accId) {
		this.accId = accId;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getSpecialId() {
		return specialId;
	}

	public void setSpecialId(Integer specialId) {
		this.specialId = specialId;
	}

	public Double getWide() {
		return wide;
	}

	public void setWide(Double wide) {
		this.wide = wide;
	}

	public Double getHigh() {
		return high;
	}

	public void setHigh(Double high) {
		this.high = high;
	}

	public Integer getProduction() {
		return production;
	}

	public void setProduction(Integer production) {
		this.production = production;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Override
	public String toString() {
		StringBuilder dataString = new StringBuilder("");
		dataString = dataString.append(this.goodForRoom + "\\0\\" + this.good.getGoodsId() + "\\"
				+ this.good.getGoodSpecialSize() + "\\" + this.good.getType() + "\\" + this.type + "|");
		dataString = dataString.append(CurtainType.getName(this.good.getType() + 1) + "\\0|");
		if (this.good.getType() == 1) {
			dataString = dataString.append("无\\3|");
			dataString = dataString.append("无\\3|");
			dataString = dataString.append("无\\3|");
		} else {
			dataString = dataString.append(CurtainStructureType.getName(this.good.getStructure() + 1) + "\\0|");
			dataString = dataString.append(CurtainStyleType.getName(this.good.getStyle() + 1) + "\\0|");
			dataString = dataString.append("里布\\0|");
		}
		dataString = dataString.append(CurtainGoodSpecialType.getName(this.type + 1) + "\\0|");
		dataString = dataString.append(this.wide + "\\0|");
		dataString = dataString.append(this.high + "\\0|");
		dataString = dataString.append("杆长\\0|");
		dataString = dataString.append(this.window + "\\0|");
		dataString = dataString.append(this.accessoriesType + "\\0|");
		dataString = dataString.append("装饰头" + "\\0|");
		dataString = dataString.append("安装方式\\0|");
		dataString = dataString.append("安装配件\\0|");
		dataString = dataString.append("制作方法\\0");
		return dataString.toString();
	}

}
